﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SaCoderZ_POS.Models;

namespace SaCoderZ_POS.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {

            Item newPosItem = new Item();

            newPosItem.ProductID = 1;
            newPosItem.ProductName = "";
            newPosItem.ProductDescription = "";

            newPosItem.CategoryID = 2;
            newPosItem.CategoryName = "";
            newPosItem.CategoryDescription = "";

            newPosItem.ItemID = 3;
            newPosItem.ItemName = "";
            newPosItem.ItemDescription = "";
            newPosItem.ItemBarCode = "";
            newPosItem.ItemPurchaseDate = Convert.ToDateTime("03/03/2014");
            newPosItem.ItemPurchaseAmount = 23;
            newPosItem.ItemSupplier = "";
            newPosItem.ItemInvoice = "";


            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
